<?php
class DICCodeOfID {	
	public $id;
	
	public function valid(){
		if ($this->username == '000032') {
			return true;
		}else{
			return false;
		}
	}
	
	public function setDatas(array $datas){
		foreach ($datas as $key => $value){
			if (property_exists($this,$key)) {
				$this->$key = $value;
			}
		}
		return $this;
	}
	
	
	public function run(){
		if ($this->valid()) {
			echo 'run';
		}else{
			echo 'noRun';
		}
	}
}